package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xnx3.j2ee.entity.BaseEntity;


/**
 * 提现记录表
 * @author zxy
 */
@Entity()
@Table(name = "laji_withdrawal_log")
public class WithdrawalLog extends BaseEntity implements java.io.Serializable {
	private Integer id;//自增id
	private Integer userId;//收款用户id
	private String phone;//收款用户手机号
	private Integer amount;//用户到账额度(骑手付款额度), 单位: 分 
	private Integer addTime;//付款时间, 十位数时间戳
	
	private String openId;//收款用户的openId
	private String partnerTradeNo;//32位商户订单号, 唯一(咱们自己生成的)
	private String payId;//微信付款单号, 付款成功，返回的微信付款单号
	private Integer qishouUserid;//发起付款的骑手用户id
	private String qishouUsername;//骑手姓名,发起付款的骑手姓名
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	@Column(name = "user_id", columnDefinition="int(11) COMMENT '收款用户id' default '0'")
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	@Column(name = "phone", columnDefinition="char(100) COMMENT '收款用户手机号' default ''")
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Column(name = "amount", columnDefinition="int(11) COMMENT '用户到账额度(骑手付款额度)' default '0'")
	public Integer getAmount() {
		return amount;
	}
	public void setAmount(Integer amount) {
		this.amount = amount;
	}
	@Column(name = "add_time", columnDefinition="int(11) COMMENT '付款时间, 十位数时间戳' default '0'")
	public Integer getAddTime() {
		return addTime;
	}
	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}
	@Column(name = "open_id", columnDefinition="char(60) COMMENT '收款用户的openId' default ''")
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	@Column(name = "partner_trade_no", columnDefinition="char(60) COMMENT '32位商户订单号, 唯一' default ''")
	public String getPartnerTradeNo() {
		return partnerTradeNo;
	}
	public void setPartnerTradeNo(String partnerTradeNo) {
		this.partnerTradeNo = partnerTradeNo;
	}
	@Column(name = "pay_id", columnDefinition="char(100) COMMENT '微信付款单号, 付款成功，返回的微信付款单号' default ''")
	public String getPayId() {
		return payId;
	}
	public void setPayId(String payId) {
		this.payId = payId;
	}
	@Column(name = "qishou_userid", columnDefinition="int(11) COMMENT '发起付款的骑手用户id' default '0'")
	public Integer getQishouUserid() {
		return qishouUserid;
	}
	public void setQishouUserid(Integer qishouUserid) {
		this.qishouUserid = qishouUserid;
	}
	@Column(name = "qishou_username", columnDefinition="char(10) COMMENT '骑手姓名,发起付款的骑手姓名' default ''")
	public String getQishouUsername() {
		return qishouUsername;
	}
	public void setQishouUsername(String qishouUsername) {
		this.qishouUsername = qishouUsername;
	}
	@Override
	public String toString() {
		return "WithdrawalLog [id=" + id + ", userId=" + userId + ", phone=" + phone + ", amount=" + amount
				+ ", addTime=" + addTime + ", openId=" + openId + ", partnerTradeNo=" + partnerTradeNo + ", payId="
				+ payId + ", qishouUserid=" + qishouUserid + ", qishouUsername=" + qishouUsername + "]";
	}
	
}